package com.dycc.libary.util;

import android.util.Log;

/**
 * 日志管理
 * Created by wxk on 2018/1/20 0020.
 */

public class LogUtil {
    //启用标识
    public static final boolean isLogModel = true;
    public static final String GLOBAL_TAG = "wxk_log";//全局TAG

    public LogUtil() {
        throw new UnsupportedOperationException("can't init");
    }

    public static void v(String tag, Object log) {
        if (!isLogModel) return;
        Log.v(tag, log.toString());
    }


    public static void e(String tag, Object log) {
        if (!isLogModel) return;
        Log.e(tag, log.toString());
    }

    public static void i(String tag, Object log) {
        if (!isLogModel) return;
        Log.i(tag, log.toString());
    }

    public static void w(String tag, Object log) {
        if (!isLogModel) return;
        Log.w(tag, log.toString());
    }


    public static void v( Object log) {
        if (!isLogModel) return;
        Log.v(GLOBAL_TAG, log.toString());
    }
    public static void i( Object log) {
        if (!isLogModel) return;
        Log.i(GLOBAL_TAG, log.toString());
    }
    public static void e( Object log) {
        if (!isLogModel) return;
        Log.e(GLOBAL_TAG, log.toString());
    }
    public static void w( Object log) {
        if (!isLogModel) return;
        Log.w(GLOBAL_TAG, log.toString());
    }


}
